import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";

//用户收藏表

@Entity({ synchronize: true })
export class Qb_yhsc {
  //自动生成
  @PrimaryGeneratedColumn("uuid", { comment: "收藏id" })
  yhsc_id: number;

  //自动生成
  @Column({ length: 100, comment: "商户编码" })
  sh_bm: string;

  @Column({ length: 100, comment: "商户名称" })
  sh_mc: string;

  @Column({ length: 100, comment: "地址" })
  sh_dz: string;

  @Column({ length: 500, comment: "商户介绍", nullable: true })
  sh_js?: string;

  @Column({ length: 100, comment: "商户标签", nullable: true })
  sh_dpbq?: string;

  @Column({
    comment: "收藏时间 yyyy-MM-dd hh:mm:ss",
    default: () => "to_char(current_timestamp,'YYYY-MM-DD HH24:MI:SS')",
  })
  yhsc_sj: string;

  @Column({ comment: "用户编码" })
  yhzh_bm: string;

  @Column({ comment: "用户名称" })
  yhzh_mc: string;
}
